package com.ruoyi.common.exception.kong;

public class KongServiceException  extends RuntimeException{

    /**
     * 错误码
     */
    private Integer code;

    /**
     * 错误提示
     */
    private String message;


    /**
     * 空构造方法，避免反序列化问题
     */
    public KongServiceException()
    {
    }

    public KongServiceException(String message)
    {
        this.message = message;
    }

    public KongServiceException(String message, Integer code)
    {
        this.message = message;
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public KongServiceException setMessage(String message)
    {
        this.message = message;
        return this;
    }
}
